<template>
  <div class="card-115 card-common-cls" :class="{'mask-cls': maskable}" @click="click2Drag">
    <img :src="`${env.publicPath}images/card/Card115_0.png`" alt="">
  </div>
</template>

<script>
  export default {
    props: {
      item: Object,
      maskable: {
        type: Boolean,
        default: true,
      },
    },
    mounted() {
      // console.log('item: ', this.item);
    },
    methods: {
      click2Drag() {
        // console.log(e);
      },
    },
  }
</script>

<style lang="scss" scoped>
  .mask-cls::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    z-index: 9;
  }

  .card-common-cls {
    position: relative;
    width: 100%;
    max-width: 375px;
    z-index: 0;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
</style>
